/**
 * @author 陈泰来
 * @version V1.0
 * @Project ioex
 * @Title 时间客户端
 * @Description NIO时间客户端
 *
 * 整体流程分析： http://naotu.baidu.com/file/a1980fcd61a21bb1cc495de73d6d0168?token=4b79d665b7df8c85
 *
 * @Package com.echo.ioex.nio.client
 * @date 2020/9/25 1:19 下午
 * @Copyright: 陈泰来の学习档案 .
 */
package com.echo.ioex.nio.client;

import com.echo.ioex.nio.client.handler.TimeClientHandler;

public class NioTimeClient {

    public static void main(String[] args) {
        int port = 9999;
        if (args != null && args.length > 0) {
            try {
                port = Integer.parseInt(args[0]);
            } catch (Exception e) {
                //使用默认值
            }
        }
        new Thread(new TimeClientHandler("127.0.0.1", port)).start();
    }
}
